package com.breez.aiauth.service;

import com.breez.aiauth.common.config.handler.AiAuthException;
import com.breez.aiauth.domain.SysUser;
import com.breez.aiauth.domain.dto.BindFaceDto;
import com.breez.aiauth.domain.dto.LoginDto;
import com.breez.aiauth.domain.dto.RegisterDto;
import org.json.JSONObject;

public interface AuthService {
    /**
     * 绑定人脸
     * @param bindFaceDto
     * @return
     */
    JSONObject  bindFace(BindFaceDto bindFaceDto);

    /**
     * 人脸登录
     * @param face
     * @return
     */
    JSONObject loginByFace(String face);

    /**
     * 账户注册
     * @param registerDto
     * @return
     * @throws AiAuthException
     */
    public boolean register(RegisterDto registerDto) throws AiAuthException;

    /**
     * 账户登录
     * @param loginDto
     * @return
     */
    SysUser loginByAccount(LoginDto loginDto);

}
